package cn.mazexal.examapi.models.db;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 用户表
 */
@Data
@TableName(value = "user")
public class UserDO implements Serializable {

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     *
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 微信登录
     */
    @TableField(value = "wx_authorization_code")
    private String wxAuthorizationCode;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 盐
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     *
     */
    @TableField(value = "create_time")
    private Long createTime;

    /**
     * 是否注销
     */
    @TableField(value = "is_unregister")
    private Integer isUnregister;

    /**
     * 注销时间
     */
    @TableField(value = "unregister_time")
    private Long unregisterTime;


    @TableField(value = "vip_expire_time")
    private Long vipExpireTime;
}